<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Vue的按键修饰符</title>
</head>
<body>
  <div id="app">
    <h3>{{num}}</h3>
    <div>
      <input type="text" name="" @keyup.delete="num=0" @keyup.enter="num+=10" :value="num" id="">
    </div>
  </div>
  <script src="vue.js"></script>
  <script>
    const vm  = new Vue({
      el:"#app",
      data:{
        num:10
      },
      methods:{
      }
    })
  </script>
</body>
</html>